Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / Get Method / Get<T>(IPdfDict,PdfName,T) Method
The current dictionary.
The key identifying the value.
The default value.

In This Topic
    Get<T>(IPdfDict,PdfName,T) Method
    In This Topic
    Gets the value associated with the specified key, if the value does not exist or cannot be converted to a T returns the defValue. Note! This method returns IPdfRef if T is IPdfRef, otherwise the method resolves the reference and returns *actual* object.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Get(Of T As IPdfObject)( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As T _
    ) As T
    public static T Get<T>( 
       IPdfDict dict,
       PdfName key,
       T defValue
    )
    where T: IPdfObject

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value associated with the specified key, or null
    See Also